package service

import (
	"go.uber.org/zap"
	"os"
	"ruoyi-go/framework/dal"
	"ruoyi-go/framework/log"
)

type MinioService struct{}

func (*MinioService) UploadPath(path string) string {
	log.L.Info("Start to upload Path,Path is {}", zap.String("path", path))
	open, err := os.Open(path)
	if err != nil {
		panic(err)
	}
	defer open.Close()
	client := dal.MinioClient
	if client != nil {
		panic(client)
	}

	return ""
}
